package net.wzw.converter;


import net.wzw.entity.FoodSaveOrUpdateEntity;
import net.wzw.model.FoodDO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;

/**
 * @author wzw
 * @date 2025/4/19
 * @Description 美食消息转换器
 */
@Mapper(componentModel = "spring")
public interface FoodConverter {

    /**
     * Description: 对象转换
     * @param null
     * @Return: {@link null}
     * @Author: Administrator
     * @Date: 2025/4/19 22:25
     */
    @Mappings({
            @Mapping(target = "foodDetail",ignore = true),
            @Mapping(target = "foodList",ignore = true)
    })
    FoodDO convertFoodDO(FoodSaveOrUpdateEntity foodSaveOrUpdateEntity);


}
